<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>入库记录更新页面</title>
    <link type="text/css" rel="stylesheet" th:href="@{/css/style.css}" />
    <link type="text/css" rel="stylesheet" th:href="@{/css/public.css}" />
</head>
<body>

<div th:replace="~{common/head::head}"></div>

<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>入库记录管理页面 >> 订单添加页面</span>
    </div>
    <div class="supplierAdd">
        <form id="storageRecordForm" name="storageRecordForm" method="post" action="/sys/storageRecord/update">
            <input type="hidden" name="id" th:value="${storageRecord.id }">
            <!--div的class 为error是验证错误，ok是验证成功-->
            <div class="">
                <label for="srCode">入库编号：</label>
                <input type="text" name="srCode" id="srCode" th:value="${storageRecord.srCode }" readonly="readonly">
            </div>
            <div>
                <label for="goodsName">商品名称：</label>
                <input type="text" name="goodsName" id="goodsName" th:value="${storageRecord.goodsName }">
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsUnit">商品单位：</label>
                <input type="text" name="goodsUnit" id="goodsUnit" th:value="${storageRecord.goodsUnit }">
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsCount">入库数量：</label>
                <input type="text" name="goodsCount" id="goodsCount" th:value="${storageRecord.goodsCount }">
                <font color="red"></font>
            </div>
            <div>
                <label for="totalAmount">总金额：</label>
                <input type="text" name="totalAmount" id="totalAmount" th:value="${storageRecord.totalAmount }">
                <font color="red"></font>
            </div>
            <div>
                <label for="supplierId">供货商：</label>
                <input type="hidden" value="${storageRecord.supplierId }" id="pid" />
                <select name="supplierId" id="supplierId">
                </select>
                <font color="red"></font>
            </div>

                <div>
                    <label>付款状态：</label>
                    <input type="radio" name="payStatus" value="1" th:checked="${storageRecord.payStatus == 1}">未付款
                    <input type="radio" name="payStatus" value="2" th:checked="${storageRecord.payStatus == 2}">已付款
                </div>

            <div class="supplierAddBtn">
                <input type="button" name="save" id="save" value="保存">
                <input type="button" id="back" name="back" value="返回" >
            </div>
        </form>
    </div>

</div>
</section>
</div>
<div th:replace="~{common/foot::foot}"></div>
<script type="text/javascript" th:src="@{/js/storageRecord/update.js}"></script>

</body>
</html>
